public class Main {
    public static void main(String[] args) {
        System.out.println("======================");
        System.out.println("学生成绩管理系统");
        System.out.println("=======================");

        StudentManager manager = new StudentManager(50,8,100);

        //测试1:课程的添加
        System.out.println("测试1：【课程的添加】");
        Course c1 = new Course("C001","面向对象程序设计",4);
        Course c2 = new Course("C002","数据结构",2);
        Course c3 = new Course("C003","数据库原理",3);

        manager.addCourse(c1);
        manager.addCourse(c2);
        manager.addCourse(c3);

        //测试2：学生的添加
        System.out.println("测试2：【学生的添加】");
        Student s1 = new Student("S001","张三","计算机科学与技术");
        Student s2 = new Student("S002","李四","软件工程");
        Student s3 = new Student("S003","王五","电子商务");

        manager.addStudent(s1);
        manager.addStudent(s2);
        manager.addStudent(s3);
        manager.addStudent(s3);

        //测试3：添加成绩
        System.out.println("测试3：【添加成绩】");

        //添加张三的成绩
        manager.addGrade("S001","C001",78,98);
        manager.addGrade("S001","C002",87,85);
        manager.addGrade("S001","C003",70,80);

        //添加李四的成绩
        manager.addGrade("S002","C001",75,85);

        //测试添加不存在学号的学生的成绩
        manager.addGrade("S999","C001",80,90);

        //测试4：查询学生的成绩
        System.out.println("测试4：【查询某学生的成绩】");
        manager.queryStudentGrades("S001");

        System.out.println("在家里的修改");













    }
}
